<?php 
require_once TEMPLATEPATH.'/views/process/process-support-sidebar.php';
?>
<div class="right_menu right_menu_2">
          <div class="hotline hotline_2">    
          		<img alt="" src="<?php echo $imagerand;?>">      	
          		<span class="hotline_1 hotline_2_2"><?php echo $hotline;?></span> 
          </div>
          <!-- end .hotline-->
          <div class="sp_noibat sp_noibat_2">
            <div class="title_sp_noibat title_sp_noibat_2"> <span class="title">Quận/huyện</span> </div>
            <!-- end .title_sp_noibat-->
            <div class="content_sp_noibat content_sp_noibat_2">
              <div class="swapper_sp_new swapper_sp_new_2">
                <ul class="list-danh-muc">
                
				 <?php 
				 ## list danh sach khu vu
				 //print_r($khuvuc_list);
				 foreach ($khuvuc_list as $value) 
				 {					 	
				 ?>
				 	<li><a href="<?php echo get_term_link($value->slug,'khu-vuc');?>"><?php echo $value->name;?><span> &nbsp;(<?php echo db_count_post_in_term_taxonomy('post', $value->slug, 'khu-vuc');;?>)</span></a></li>
				 <?php 	
				 }
				 
				 ?>	   
				 
                </ul>
                <div class="trong"></div>
              </div>
              <!-- end .swapper_sp_new-->
            </div>
            <!-- end .content_sp_noibat-->
          </div>          
          <!-- end .sp_noibat-->
          <?php 
          $args = null;
          $args = db_query_all_post_in_post_type(1, 'adv', 'date', 'DESC', $wpdb->prefix.'display', 'display');
          query_posts($args);
          if(have_posts())
          {
          	the_post();
          	$post_id = get_the_ID();
          	$thumbnail = db_get_post_meta($post_id, $wpdb->prefix.'thumbnail');
          	$myurl = get_post_meta($post_id, $wpdb->prefix.'url',true);
          	if(!$myurl)
          		$myurl = WP_MYSITE_URL;
          	?>
          	<div>
	          	<a href="<?php echo $myurl;?>"> 
	          	 	<img alt="" src="<?php echo $thumbnail; ?>" width="338" height="176">
	          	 </a>	 
	          </div>
          	<?php 
          }
          ?>
          
        </div>